package com.zsrt.java.day20161223.wrl.homework;

import java.util.Scanner;
import org.junit.Test;

public class Work04 {
	/**
	 * >=90	优
	 * >=80	良
	 * >=70	及格
	 * else	不及格
	 */
	@Test
	public void w04(){
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入分数：\n");
		int score = sc.nextInt();
		sc.close();
		if(90 <= score){
			System.out.println("成绩优秀");
		}else if(80 <= score){
			System.out.println("成绩良好");
		}else if(70 <= score){
			System.out.println("成绩及格");
		}else{
			System.out.println("成绩不及格");
		}
	}
}
